﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class PartsDialog : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //CheckBoxList1.Items.Add(new ListItem("aaaaa","2222"));
        //CheckBoxList1.Items.Add(new ListItem("bbbbb", "33333"));
        //CheckBoxList1.Items.Add(new ListItem("ccccc", "444444"));
        //string checkListValue = "";
        //string checkListText = "";
        //for (int i = 0; i < CheckBoxList1.Items.Count; i++)
        //{
        //    checkListValue += CheckBoxList1.Items[i].Value+",";
        //    checkListText += CheckBoxList1.Items[i].Text+",";
        //}
        //checkListText = checkListText.TrimEnd(',');
        //checkListValue = checkListValue.TrimEnd(',');
        //CheckBoxList1.Attributes["ListValue"] = checkListValue;
        //CheckBoxList1.Attributes["ListText"] = checkListText;
        //Response.Write(checkListText);
    }
}
